package com.itgo.codegen.bean;

public class ColumnMeta {

	private String columnName ;
	private String dataType ;
	private String columnComment ;
	private String columnKey ;
	
	public String getColumnName() {
		return columnName;
	}
	public void setColumnName(String columnName) {
		this.columnName = columnName.toLowerCase();
	}
	public String getDataType() {
		return dataType;
	}
	public void setDataType(String dataType) {
		this.dataType = dataType.toLowerCase();
	}
	public String getColumnComment() {
		return columnComment;
	}
	public void setColumnComment(String columnComment) {
		this.columnComment = columnComment;
	}
	public String getColumnKey() {
		return columnKey;
	}
	public void setColumnKey(String columnKey) {
		this.columnKey = columnKey;
	}
	public boolean isPk (){
		return  columnKey != null && columnKey.equalsIgnoreCase("PRI") ;
	}
}
